/*
 * @Author: xuningda 1721417139@qq.com
 * @Date: 2022-08-10 12:45:40
 * @LastEditors: xuningda 1721417139@qq.com
 * @LastEditTime: 2022-09-16 16:08:31
 * @FilePath: \WEB\src\utils\apis\basic.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '../request'

// 获取字典数据
export function getEnumDetailSource(params) {
    return request({
        url: 'bdEnumdetail/getEnumDetailSource',
        method: 'POST',
        data: params
    })
}
// 获取字典数据-分页
export function getEnumDetailSourcePage(params) {
    return request({
        url: 'bdEnumdetail/getEnumDetailSourcePage',
        method: 'POST',
        data: params
    })
}
// 成本-卫生材料名称下拉框
export function listEdFirstByFuzzy(params) {
    return request({
        url: 'bdEnumdetail/listEdFirstByFuzzy',
        method: 'POST',
        data: params
    })
}

// 成本-卫生材料-项目名称下拉框
export function listCostItemDictByFuzzy(params) {
    return request({
        url: 'costItemTypeDict/listCostItemDictByFuzzy',
        method: 'POST',
        data: params
    })
}

// 删除
export function batchDeleteEnumDetail(params) {
    return request({
        url: 'bdEnumdetail/batchDeleteEnumDetail',
        method: 'POST',
        data: params
    })
}
// 删除-科室分摊
export function batchDeleteRuleAmortization(params) {
    return request({
        url: 'ruleAmortization/batchDeleteRuleAmortization',
        method: 'POST',
        data: params
    })
}

// 新增
export function addEnumDetail(params) {
    return request({
        url: 'bdEnumdetail/addEnumDetail',
        method: 'POST',
        data: params
    })
}

// 修改
export function modifyEnumDetail(params) {
    return request({
        url: 'bdEnumdetail/modifyEnumDetail',
        method: 'POST',
        data: params
    })
}

// 科室工资对应-导出
export function DeptSalaryRelation(params) {
    return request({
        url: 'bdEnumdetail/download/DeptSalaryRelation',
        method: 'get',
        responseType: 'blob'
    })
}
// 规则对照-His科室-导出
export function DeptHisRelation(params) {
    return request({
        url: 'bdEnumdetail/download/DeptHisRelation',
        method: 'get',
        responseType: 'blob'
    })
}
// 规则对照-科室用友-导出
export function DeptUFIDARelation(params) {
    return request({
        url: 'bdEnumdetail/download/DeptUFIDARelation',
        method: 'get',
        responseType: 'blob'
    })
}
// 规则对照-成本用友系统-导出
export function getCostOfUfDownLoadExcel(params) {
    return request({
        url: 'etlAccount/getCostOfUfDownLoadExcel',
        method: 'post',
        data: params,
        responseType: 'blob'
    })
}
// 规则对照-成本薪酬-导出
export function rdCostsalaryrelationDown(params) {
    return request({
        url: 'rdCostsalaryrelation/download',
        method: 'post',
        data: params,
        responseType: 'blob'
    })
}
// 获取分录凭证
export function getAccvouchWorkload(params) {
    return request({
        url: 'Accvouch/getAccvouchWorkload',
        method: 'post',
        data: params,
    })
}

export function exportExcelPz(params) {
    return request({
        url: 'Accvouch/exportExcel',
        method: 'post',
        data: params,
        responseType: 'blob'
    })
}


